class CreateStoresReports < ActiveRecord::Migration[5.0]
  def change
    create_table :stores_reports do |t|
      t.date :report_date
      t.references :store
      t.string :store_name
      t.references :coach
      t.string :coach_name
      t.integer :free, comment: '免费课程数'
      t.integer :tuition, comment: '收费课程数'
      t.timestamps
    end
  end
end
